from django.conf.urls.defaults import patterns, include, url
from django.template import Context
from django.template.loader import get_template
from CSCE431D.views import hello, current_datetime, home

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
	('^hello/$', hello),
	('^time/$', current_datetime),
	('^home/$', home),
	(r'^profile/(?P<username>\w{0,50})/$', 'agbay.views.profile_page'),
	(r'^profiles/$', 'agbay.views.name_list'),
	(r'^profile/(?P<username>\w{0,50})/notifications$', 'agbay.views.view_notifications'),
	(r'^update/(?P<username>\w{0,50})/$', 'agbay.views.update'),
	(r'^delete/user/(?P<username>\w{0,50})/$', 'agbay.views.delete_user'),
	(r'^register/$', 'agbay.views.register'),
	(r'^register/submit$', 'agbay.views.getParam'),
	(r'^login/$', 'agbay.views.login'),
	(r'^login/attempt_login$', 'agbay.views.attempt_login'),
	(r'^bid/$', 'agbay.views.bid'),
	(r'^create_item/$', 'agbay.views.create_item'),
	(r'^create_item/submit$', 'agbay.views.getItem'),
	(r'^items/$', 'agbay.views.items_list'),
	(r'^item/(?P<item_id>\d{0,50})/$', 'agbay.views.item_page'),
	(r'^rating/$', 'agbay.views.rating'),
	(r'^rating/(?P<username>\w{0,50})/$', 'agbay.views.get_rating'),
	(r'^rating/submit$', 'agbay.views.name_list', {'flag': 'Thanks for rating!'}),

    # Examples:
    #admin prob won't need for now
    # url(r'^$', 'mysite.views.home', name='home'),
    # url(r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
